//引入初始化的样式文件
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import '@/styles/common.scss'

import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
//引入懒加载
import { LazyPlugin } from '@/directives/index.js'
//引入全局组件
import { componentPlugin } from '@/components/index.js'
//注册持久化插件
const pinia=createPinia()
pinia.use(piniaPluginPersistedstate)

const app = createApp(App)
app.use(pinia)
// app.use(createPinia())
app.use(router)
app.use(LazyPlugin)
app.use(componentPlugin)
app.mount('#app')




